/*
========================================================================
 Name        : AacPlayer.h
 Author      : 
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/

#ifndef AACPLAYER_H_
#define AACPLAYER_H_

#include <drmaudiosampleplayer.h>

/**
 * @class   CAacPlayer AacPlayer.h
 * @brief   CAacPlayer provides functions of playing aac audio files.
 */
class CAacPlayer : public CBase, public MDrmAudioPlayerCallback
	{
	
public:
    // consturctor and destructor
	static CAacPlayer* NewL();
	~CAacPlayer();
	
public:
    // from MDrmAudioPlayerCallback
	void MdapcInitComplete(TInt aError, 
			const TTimeIntervalMicroSeconds& aDuration);
	void MdapcPlayComplete(TInt aError);
	
private:
	CAacPlayer();
	void ConstructL();
	
private:
	CDrmPlayerUtility* iPlayer;
	
	};

#endif /*AACPLAYER_H_*/
